package chloroform.exec

import chloroform.{InstanceExecutorContext, InstanceExecutor}

/**
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: 16.4.11
 * Time: 11:58
 * To change this template use File | Settings | File Templates.
 */

object PlainObjectExecutor extends InstanceExecutor {
  def execute(instance: Any, context: InstanceExecutorContext) = {
    val writer = context.response.getWriter
    writer.write("" + instance)
    writer.flush
  }
}